package com.ag.zrt.action;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.ag.bean.TbLogType;
import com.ag.common.BaseAction;
import com.ag.zrt.service.ILogTypeService;

@Controller("logTypeAction")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class LogTypeAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3943861247154117554L;
	@Resource(name = "LogTypeService")
	private ILogTypeService logTypeService;
	private List<TbLogType> logTypeList;

	public List<TbLogType> getLogTypeList() {
		return logTypeList;
	}

	public void setLogTypeService(ILogTypeService logTypeService) {
		this.logTypeService = logTypeService;
	}

	public String load() {
		
		logTypeList = logTypeService.findAll();

		return "load_succ";

	}

}
